cmake_minimum_required(VERSION 3.20)
project(http_server)

set(CMAKE_CXX_STANDARD 14)


add_executable(httpserver src/main/app/Main/main.cpp

        src/main/app/Sync/MutexLock.cpp src/main/app/Sync/MutexLock.hpp
        src/main/app/Sync/Cond.cpp src/main/app/Sync/Cond.hpp
        src/main/app/Sync/Sem.cpp src/main/app/Sync/Sem.hpp

        src/main/app/ThreadPool/ThreadPool.cpp src/main/app/ThreadPool/ThreadPool.hpp

        src/main/app/Task/HttpConn/HttpConn.cpp src/main/app/Task/HttpConn/HttpConn.hpp

        src/main/app/Task/HttpConn/Enum/Method.hpp
        src/main/app/Task/HttpConn/Enum/RequestMessage.hpp
        src/main/app/Task/HttpConn/Enum/RequestMessageParseResult.hpp
        src/main/app/Task/HttpConn/Enum/RequestMessagePerLineParseResult.hpp

        src/main/app/Epoll/Epoll.cpp src/main/app/Epoll/Epoll.hpp

        src/main/app/Config/Config.cpp src/main/app/Config/Config.hpp)

target_link_libraries(httpserver pthread)